< previous page page_494 next page >

Page 494
z0514-01.gif
Figure 14.17
A simple, pseudo-random surface.
copies the original data points into their correct locations in the resized array. It then invokes subroutine Subdivide for each of the regions representing the original surface.
Subdivide breaks one of the surface's defining regions into four smaller regions, randomly adjusting each of the five new data points. It then recursively calls itself to divide the smaller regions if necessary.
The parameter Dy tells subroutine Subdivide the maximum amount by which it can adjust each of the new points. When the routine calls itself, it decreases Dy by a factor
z0514-02.gif
Figure 14.18
A fractal surface produced by subdividing the surface in Figure 14.16 three times.

 
< previous page page_494 next page >